/**
  * @Time: 2018-07-03
  * @Author: Carl
  */

@import './basic.scss';

/* @Module Reset */
* {
  box-sizing: border-box;
  outline: 0;
}
html,body,ul,ol,dl,h1,h2,h3,h4,h5,h6,p {
  margin: 0;
  padding: 0;
  font-family: arial,"Hiragino Sans GB","Microsoft Yahei",sans-serif;
}
ul, ol, dl, li {
  list-style: none;
}
a {
  text-decoration: none;
  color: $green;
  &:hover {
    text-decoration: underline;
  }
}
img {
  display: block;
}
::-webkit-input-placeholder { /* WebKit browsers */
    color: #bbbbbb;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #bbbbbb;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #bbbbbb;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #bbbbbb;
}
/* @End Reset */

/* @module Layout */
.container {
  margin-right: auto;
  margin-left: auto
}

.row {
  margin-right: -5px;
  margin-left: -5px
}
.row::before,
.row::after{
  content: '';
  display: table;
  clear: both;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  position: relative;
  float: left;
  min-height: 1px;
  padding-right: 5px;
  padding-left: 5px
}

.col-12 {
  width: 100%
}

.col-11 {
  width: 91.66666667%
}

.col-10 {
  width: 83.33333333%
}

.col-9 {
  width: 75%
}

.col-8 {
  width: 66.66666667%
}

.col-7 {
  width: 58.33333333%
}

.col-6 {
  width: 50%
}

.col-5 {
  width: 41.66666667%
}

.col-4 {
  width: 33.33333333%
}

.col-3 {
  width: 25%
}

.col-2 {
  width: 16.66666667%
}

.col-1 {
  width: 8.33333333%
}

.fl {
  float: left;
}

.fr {
  float: right;
}
.db {
  display: block;
}

.clearfix {
  &::before,
  &::after {
    content: '';
    display: table;
    clear: both;
  }
}
/* @End Layout */

/* @Module Icon */
[class^=icon-] {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: baseline;
}
.icon-mobile {
  width: 20px;
  height: 20px;
  background: url('../images/icon-mobile.png') center no-repeat;
}
.icon-lock {
  width: 20px;
  height: 20px;
  background: url('../images/icon-lock.png') center no-repeat;
}
.icon-clear {
  width: 20px;
  height: 20px;
  background: url('../images/icon-clear.png') center no-repeat;
}
[class^=icon-step] {
  display: inline-block;
  width: 36px;
  height: 36px;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: baseline;
  background-position: center;
  background-repeat: no-repeat;
}
.icon-step1 {
  background-image: url('../images/step1.png');
  &.active {
    background-image: url('../images/step1_on.png');
  }
}
.icon-step2 {
  background-image: url('../images/step2.png');
  &.active {
    background-image: url('../images/step2_on.png');
  }
}
.icon-step3 {
  background-image: url('../images/step3.png');
  &.active {
    background-image: url('../images/step3_on.png');
  }
}
.icon-step4 {
  background-image: url('../images/step4.png');
  &.active {
    background-image: url('../images/step4_on.png');
  }
}
.icon-step5 {
  background-image: url('../images/step5.png');
  &.active {
    background-image: url('../images/step5_on.png');
  }
}
/* @End Icon */

/* @Module SignPage */
.sign-page {
  position: relative;
  height: 540px;
  background: url('../../assets/images/banner.png') center no-repeat;
  background-size: cover;
  
}
/* @Module Form */
.v-form {
  overflow: hidden;
  .v-form-item {
    position: relative;
    &.pre-icon .el-input__inner{
      padding: 0 36px;
    }
    .el-input__inner {
      display: block;
      padding: 0 12px;
      width: 100%;
      font-size: 14px;
      &:focus {
        border: solid 1px $green_l;
        box-shadow: 0 0 8px rgba(132, 194, 37, .6);
      }
    }
    .el-input-group__append, .el-input-group__prepend {
      padding: 0;
      overflow: hidden;
    }
    [class^=icon-] {
      position: absolute;
      z-index: 12;
      top: 10px;
      left: 10px;
    }
    .el-form-item__error {
      padding-left: 15px;
      color: $red;
      background: url(../images/icon-error.png) 0 4px no-repeat;
    }
    .inner-btn {
      width: 99px;
      height: 34px;
      font-size: $fz_12;
      border: none;
      background: none;
      cursor: pointer;
      &.disabled {
        color: $f_sub;
        background: #eeeeee;
        cursor: no-drop;
      }
    }
    .v-valid-tips {
      position: absolute;
      top: 40px;
      left: 0;
      padding: 4px 0 0 15px;
      font-size: $fz_12;
      line-height: 1;
      &.success {
        color: $green;
        background: url(../../assets/images/icon-success.png) left 4px no-repeat;
      }
    }
  }
}
/* @End Form */

/* @End SignPage */

/* @Module Section */
.main-title {
  margin: auto;
  padding: 30px 0 15px;
  width: 1200px;
  span {
    padding-left: 10px;
    line-height: 24px;
    font-size: $fz_20;
    font-weight: normal;
    border-left: solid 5px $green_l;
  }
  .btn-more {
    float: right;
    font-size: $fz_16;
    color: $f_normal;
  }
}
/* @End Section */

#app {
  background: $bg_color;
}
.page {
  margin: auto;
  width: 1200px;
  .page-title {
    margin: 20px 0;
    color: $f_main;
    font-size: $fz_16;
    font-weight: 500;
  }
}
.promotion {
  border-bottom: solid 1px $border_color;
  .promo-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0;
    .tag {
      max-width: 100%;
      white-space: nowrap;
      text-overflow:ellipsis;
      overflow: hidden;
      padding: 0 5px;
      height: 24px;
      line-height: 24px;
      font-size: $fz_14;
      color: $red;
      border: solid 1px $red;
      border-radius: 4px;
    }
    .text {
      margin-left: 10px;
      font-size: $fz_14;
      color: $f_main;
    }
    .link {
      margin-left: 20px;
      font-size: $fz_14;
      color: #005ea7;
      .el-icon-arrow-right {
        color: $f_sub;
      }
    }
  }
}

/* @Module Product-item */
.product-item {
  width: 100%;
  max-width: 232px;
  height: 425px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  .product-box {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none!important;
    background: #ffffff;
    overflow: hidden;
    .product-img {
      margin: 20px;
      .img {
        display: block;
        width: 100%;
      }
    }
    .product-info {
      padding: 0 20px 19px;
      .sell {
        margin: 4px 0 0;
        font-size: 0;
        height: 23px;
        overflow: hidden;
        .discount {
          display: inline-block;
          vertical-align: middle;
          padding: 0 13px 0 5px;
          height: 23px;
          line-height: 23px;
          font-size: $fz_16;
          color: #ffffff;
          background: right center url('../../assets/images/discount-bg.png') no-repeat;
        }
        .sell-price {
          margin-left: 6px;
          vertical-align: middle;
          display: inline-block;
          font-size: $fz_16;
          color: $red;
          em {
            vertical-align: text-bottom;
            font-size: $fz_12;
            font-style: normal;
          }
          .sell-type {
            vertical-align: text-bottom;
            font-size: $fz_14;
            font-style: normal;
            color: $f_sub;
          }
        }
        .orignal-price {
          display: inline-block;
          vertical-align: middle;
          margin-left: 6px;
          font-size: $fz_14;
          color: $f_sub;
        }
      }
      .name {
        margin-top: 5px;
        height: 36px;
        font-size: $fz_14;
        line-height: 18px;
        color: $f_main;
        overflow:hidden;
        text-overflow:ellipsis;
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        &:hover {
          color: $red;
        }
        &:after {
          content: '';
          display: table;
          clear: both;
        }
      }
      .discounts {
        padding-top: 5px;
        .tag-group {
          padding-top: 5px;
          font-size: 0;
          .tag {
            display: inline-block;
            margin-right: 5px;
            font-size: $fz_14;
            color: $red;
            padding: 4px;
            border: solid 1px $red;
            border-radius: 4px;
            max-width: 100%;
            white-space: nowrap;
            text-overflow:ellipsis;
            overflow: hidden;
            &:last-child {
              margin-right: 0;
            }
          }
        }
      }
      .store {
        clear: both;
        display: block;
        float: left;
        margin: 5px 0 0;
        padding: 0 6px;
        max-width: 100%;
        white-space: nowrap;
        text-overflow:ellipsis;
        overflow: hidden;
        font-size: $fz_14;
        height: 24px;
        line-height: 24px;
        color: #7f5543;
        background: #e8e4de;
        border: solid 1px #ddd2c2;
        border-radius: 2px;
      }
      .keywords {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 232px;
        text-align: center;
        .w1 {
          position: absolute;
          top: 0;
          left: 15px;
          padding: 8px 10px;
          width: 52px;
          height: 61px;
          background: url(../images/w1.png);
          font-size: 16px;
          color: #ffffff;
        }
        .w2 {
          position: absolute;
          right: 0;
          bottom: 0;
          width: 94px;
          height: 74px;
          background: url(../images/w2.png);
          overflow: hidden;
          .text {
            width: 150px;
            display: block;
            padding: 4px 0;
            text-align: center;
            color: #fff;
            font-style: normal;
            transform: translate(-13px, 35px) rotate(-39deg);
            border: solid 1px #ffffff;
          }
        }
        .w3 {
          position: absolute;
          top: 10px;
          right: 10px;
          padding: 13px;
          width: 60px;
          height: 60px;
          font-size: 16px;
          color: #ffffff;
          background: #ff3b30;
          border-radius: 50%;
        }
      }
    }
    &:hover {
      background: $bg_color;
    }
  }
}
/* @End Product-item */

/* @Module User-center*/
.user-title{
  font-size: $fz_16;
  color: $green;
  padding-bottom: 7px;
  box-sizing: border-box;
  border-bottom: 3px solid $border_color;
  position: relative;
  ::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 65px;
    height: 4px;
    background-color: $green;
  }
}
.user-wrapper{
  background: #ffffff;
  border: 1px solid $border_color;
  margin-top: 20px;
  color: $f_main;
  .header{
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    // background: $bg_color;
    font-size: $fz_14;
    padding-left: 25px;
    border-bottom:  1px solid $border_color;
  }
  .user-content{
    padding-left: 25px;
  }
}
/* @End User-center*/

/* @Moudle List-page */
.list-page {
  margin: 0 auto;
  width: 1200px;
  // 面包屑
  .breadcrumb {
    margin: 20px 0;
    height: 26px;
    .el-breadcrumb__item {
      height: 26px;
      line-height: 26px;
      .el-breadcrumb__inner {
        display: inline-block;
        vertical-align: middle;
      }
      .el-breadcrumb__separator {
        vertical-align: middle;
      }
    }
  }
}
/* @End List-page */

/* @Module Tool-Bar */
.tool-wrapper {
  margin-top: 15px;
  padding: 12px 20px;
  background: #ffffff;
  border: solid 1px $border_color;
  .btn-group {
    float: left;
    font-size: 0;
    .btn {
      display: inline-block;
      margin-left: -1px;
      padding: 0 8px;
      height: 30px;
      line-height: 30px;
      border: solid 1px #d9d9d9;
      cursor: pointer;
      &:hover,
      &.active {
        background: $green_l;
        border: solid 1px $green_l;
        .text {
          color: #ffffff;
        }
        .icon {
          color: #ffffff;
        }
      }
      .text {
        font-size: $fz_16;
      }
      .icon {
        vertical-align: top;
        margin-top: 8px;
        margin-left: 2px;
        margin-right: -2px;
        font-size: 12px;
        color: #999999;
      }
    }
  }
}
/* @End Tool-Bar */

/* @Module List-page */
.list-wrapper {
  margin-top: 20px;
  .goods-list {
    margin-left: -10px;
    margin-right: -10px;
    .goods-item {
      margin-bottom: 20px;
      padding-left: 10px;
      padding-right: 10px;
      height: 495px;
      .product-box {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        background: #ffffff;
        border: solid 2px transparent;
        .product-img {
          width: 100%;
          height: 285px;
        }
        .product-info {
          padding: 0 20px 19px;
          .sell {
            margin: 4px 0 0;
            font-size: 0;
            height: 23px;
            overflow: hidden;
            .discount {
              display: inline-block;
              vertical-align: middle;
              padding: 0 13px 0 5px;
              height: 23px;
              line-height: 23px;
              font-size: $fz_16;
              color: #ffffff;
              background: right center url('../../assets/images/discount-bg.png') no-repeat;
            }
            .sell-price {
              margin-left: 6px;
              vertical-align: middle;
              display: inline-block;
              font-size: $fz_16;
              color: $red;
              em {
                vertical-align: text-bottom;
                font-size: $fz_12;
                font-style: normal;
              }
              .sell-type {
                vertical-align: text-bottom;
                font-size: $fz_14;
                font-style: normal;
                color: $f_sub;
              }
            }
            .orignal-price {
              display: inline-block;
              vertical-align: middle;
              margin-left: 6px;
              font-size: $fz_14;
              color: $f_sub;
            }
          }
          .name {
            margin-top: 5px;
            height: 36px;
            font-size: $fz_14;
            line-height: 18px;
            color: $f_main;
            overflow:hidden;
            text-overflow:ellipsis;
            display:-webkit-box;
            -webkit-box-orient:vertical;
            -webkit-line-clamp:2;
            &:hover {
              color: $red;
            }
          }
          .discounts {
            padding-top: 5px;
            .tag-group {
              padding-top: 5px;
              font-size: 0;
              .tag {
                display: inline-block;
                margin-right: 5px;
                font-size: $fz_14;
                color: $red;
                padding: 4px;
                border: solid 1px $red;
                border-radius: 4px;
                max-width: 100%;
                white-space: nowrap;
                text-overflow:ellipsis;
                overflow: hidden;
                &:last-child {
                  margin-right: 0;
                }
              }
            }
          }
          .store {
            clear: both;
            display: block;
            float: left;
            margin: 5px 0 0;
            padding: 0 6px;
            max-width: 100%;
            white-space: nowrap;
            text-overflow:ellipsis;
            overflow: hidden;
            font-size: $fz_14;
            height: 24px;
            line-height: 24px;
            color: #7f5543;
            background: #e8e4de;
            border: solid 1px #ddd2c2;
            border-radius: 2px;
          }
        }
        .keywords {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 285px;
          text-align: center;
          .w1 {
            position: absolute;
            top: 0;
            left: 15px;
            padding: 8px 10px;
            width: 52px;
            height: 61px;
            background: url(../images/w1.png);
            font-size: 16px;
            color: #ffffff;
          }
          .w2 {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 94px;
            height: 74px;
            background: url(../images/w2.png);
            overflow: hidden;
            .text {
              width: 150px;
              display: block;
              padding: 4px 0;
              text-align: center;
              color: #fff;
              font-style: normal;
              transform: translate(-13px, 35px) rotate(-39deg);
              border: solid 1px #ffffff;
            }
          }
          .w3 {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 13px;
            width: 60px;
            height: 60px;
            font-size: 16px;
            color: #ffffff;
            background: #ff3b30;
            border-radius: 50%;
          }
        }
        &:hover {
          border: solid 2px $green_l;
          box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
        }
      }
    }
  }
  .store-list {
    .store-item {
      margin-bottom: 30px;
      background: #ffffff;
      .store-box {
        margin: 0 30px;
        padding: 0 0 25px;
        border-bottom: solid 1px $border_color;
        .logo {
          float: left;
          margin-right: 15px;
        }
        .info {
          float: left;
          padding-top: 30px;
          .store-name {
            margin-bottom: 10px;
            font-size: $fz_16;
            color: $f_main;
            max-width: 100%;
            white-space: nowrap;
            text-overflow:ellipsis;
            overflow: hidden;
          }
          .store-local {
            margin-bottom: 10px;
            font-size: $fz_14;
            color: $f_normal;
          }
        }
      }
    }
  }
}
/* @End List-page */

.el-button--mini {
  padding: 5px;
}

/* @Module tabs */
.v-tabs{
  .el-tabs__header {
    margin-bottom: 80px;
  }
  .el-tabs__item {
    font-size: $fz_14;
    color: $f_normal;
    &.is-active {
      font-size: $fz_16;
      color: $green;
    }
  }
}
/* @End tabs */

.order-steps {
  .el-step__line {
    top: 17px!important;
  }
  .el-step__icon {
    background: transparent;
    width: 36px!important;
    height: 36px!important;
    &.is-text {
      border: none;
    }
  }
}

#_magnifier_layer {
  margin-top: -1px;
  margin-left: 20px;
  border: solid 2px $green;
}

.attr-checkbox {
  .el-checkbox__label {
    font-size: $fz_16;
    color: $f_main;
  }
}

/* 单张图片上传组件 */
.uploader-bar{
  padding: 20px 38px;
  border-bottom: 1px dashed $border_color;
  .single-uploader{
    display: inline-block;
    vertical-align: top;
    line-height: 0;
    margin-right: 20px;
    .el-upload{
      position: relative;
      box-sizing: border-box;
      width: 100px;
      height: 100px;
      border: dashed 1px #ddd;
      border-radius: 6px;
      .el-icon-plus{
        font-size: 28px;
        color: #666;
        line-height: 100px;
      }
      .uploader-img{
        display: block;
        position: relative;
        width: 98px;
        height: 98px;
        & > img {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          max-width: 100%;
          max-height: 100%;
          outline: none;
        }
      }
      .btn-delete {
        position: absolute;
        top: -14px;
        right: -14px;
        font-size: 28px;
        color: #aaa;
      }
    }
    .uploader-tip{
      height: 30px;
      line-height: 30px;
      font-size: 14px;
      color: #000;
      text-align: center;
    }
  }
}
.perview-img{
  padding: 20px 0;
  & > img{
    width: 100%;
    max-width: 400px;
  }
}
.pro-grade-name {
  clear: both;
  display: block;
  float: left;
  padding: 0 6px;
  height: 28px;
  line-height: 28px;
  font-size: 14px;
  color: #ffe198;
  background: #3b3e42 url(../images/grade-tag-bg.png) center no-repeat;
}
